const Koa = require('koa');
const Router = require('koa-router');

const app = new Koa();
const router = Router();

router.get('/frontend',ctx => {
    ctx.body = 'frontend';
    
});


app.use(router.routes());
app.use(router.allowedMethods());

app.listen(1314,() => {
    console.log('服务启动起来了');
})